package com.miyake.dsp.otdr.trial;

import java.util.List;

public class CompositeUI {

	public static void main(String[] arg) {
		new CompositeUI();
	}
	
	private Composite composite;
	public CompositeUI() {
		composite = new Composite("Root");
		composite.addClient(this);
	}
	
	public void add(CompositeUI c) {
		composite.add(c.getComposite());
	}

	public Composite getComposite() {
		return composite;
	}

	public void setComposite(Composite composite) {
		this.composite = composite;
	}
	
	public void draw() {
		List<Composite> list = this.composite.getList();
		
		for (Composite c : list) {
			CompositeUI ui = (CompositeUI)c.getClient();
		}
	}
}
